package com.smmisia.article.entity.convetor;

import com.smmisia.article.entity.Attraction;
import com.smmisia.article.response.AttractionResponse;
import org.mapstruct.Mapper;
import org.mapstruct.NullValueCheckStrategy;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface AttractionConvertor {

    AttractionConvertor INSTANCE = Mappers.getMapper(AttractionConvertor.class);

    AttractionResponse toResponse(Attraction attraction);

    List<AttractionResponse> toResponse(List<Attraction> attraction);
}
